﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Models;

namespace ISMv1.Controls
{
    /// <summary>
    /// Interaction logic for AddIdea.xaml
    /// </summary>
    public partial class EditIdea : UserControl
    {
        public EditIdea(Idea idea = null)
        {
            InitializeComponent();
            if (idea != null)
            {
                FillIdeaInformation(idea);
            }
        }



        private void FillIdeaInformation(Idea idea)
        {
            txt_category.Text = idea.Id;
        }
    }
}
